home *** CD-ROM | disk | FTP | other *** search
/ Apple Reference & Presen…tion Library 4 (Reseller) / Apple Ref. & Pres. Lib.v4.0.iso / 6-Apple⁄DEC Alliance / Solutions & Networking Guide / Macintosh Networking Guide / Macintosh Networking Guide / card_2111.txt < prev    next >
Text File  |  1990-04-17  |  13KB  |  548 lines

  1. -- card: 2111 from stack: in
  2. -- bmap block id: 5615
  3. -- flags: 0000
  4. -- background id: 2585
  5. -- name: lobby
  6. ----- HyperTalk script -----
  7. on mouseEnter
  8.   put "Building Metaphore" & return & "click an environment to see" into fld "Tell"
  9. end mouseEnter
  10.  
  11. on mouseLeave
  12.   put empty into fld "Tell"
  13. end mouseLeave
  14.  
  15. on closecard
  16.   pass closeCard
  17. end closecard
  18.  
  19. on openCard
  20.   global floor, currentFloor
  21.   put "Welcome!" & return & "select your host environment" into field "Tell"
  22.   hide cd btn "destinationHiliter"
  23.   put "0  Lobby" into currentFloor
  24.   put 0 into floor
  25.   set hilite of cd btn "elevatorChoices" to true
  26. end openCard
  27.  
  28.  
  29.  
  30. -- part 85 (button)
  31. -- low flags: 00
  32. -- high flags: 0000
  33. -- rect: left=0 top=0 right=303 bottom=512
  34. -- title width / last selected line: 0
  35. -- icon id / first selected line: 0 / 0
  36. -- text alignment: 1
  37. -- font id: 0
  38. -- text size: 12
  39. -- style flags: 0
  40. -- line height: 16
  41. -- part name: New Button
  42.  
  43.  
  44. -- part 84 (button)
  45. -- low flags: 00
  46. -- high flags: 4000
  47. -- rect: left=400 top=78 right=124 bottom=477
  48. -- title width / last selected line: 0
  49. -- icon id / first selected line: 0 / 0
  50. -- text alignment: 1
  51. -- font id: 0
  52. -- text size: 12
  53. -- style flags: 0
  54. -- line height: 16
  55. -- part name: elevatorChoices
  56.  
  57.  
  58. -- part 86 (button)
  59. -- low flags: 00
  60. -- high flags: 4000
  61. -- rect: left=0 top=0 right=27 bottom=512
  62. -- title width / last selected line: 0
  63. -- icon id / first selected line: 0 / 0
  64. -- text alignment: 1
  65. -- font id: 0
  66. -- text size: 12
  67. -- style flags: 0
  68. -- line height: 16
  69. -- part name: Title bar
  70.  
  71.  
  72. -- part 1 (button)
  73. -- low flags: 00
  74. -- high flags: 0000
  75. -- rect: left=496 top=263 right=275 bottom=508
  76. -- title width / last selected line: 0
  77. -- icon id / first selected line: 0 / 0
  78. -- text alignment: 1
  79. -- font id: 0
  80. -- text size: 12
  81. -- style flags: 0
  82. -- line height: 16
  83. -- part name: elevator
  84. ----- HyperTalk script -----
  85. on mouseUp
  86.   global floor,lastfloor,currentfloor
  87.   global Help
  88.   if Help is True then exit mouseUp
  89.   put 3 into floor
  90.   push card
  91.   set the lockscreen to true
  92.   go to cd "ElevatorOpen"
  93.   put line floor of cd field "Destination" into currentfloor
  94.   put currentFloor into cd field "currentfloor"
  95.   set the hilite of button id 11 to false
  96.   set the hilite of button id 12 to false
  97.   set the hilite of button id 13 to false
  98.   set the hilite of button id 14 to false
  99.   set the hilite of button currentfloor to true
  100.   put currentfloor into cd field "currentfloor"
  101.   go to cd "ElevatorDoorLobby"
  102.   unlock screen with visual effect dissolve
  103. end mouseUp
  104.  
  105. --‚Ä¢ HELP
  106. on mouseEnter
  107.   global Help
  108.   if Help then
  109.     set lockscreen to true
  110.     show field "Explainer"
  111.     put "This is the Elevator Button" && return && return && "Feel free to wander through this building, " && "examining the environments and solutions provided." into field "Explainer"
  112.     unlock screen with dissolve fast
  113.   else
  114.     put "Elevator Button" & return & "click to go in" into fld "Tell"
  115.     changeCurs 6069
  116.   end if
  117. end mouseEnter
  118.  
  119. On mouseDown
  120.   Global ClickSND
  121.   play ClickSND
  122. End mouseDown
  123.  
  124.  
  125. on mouseLeave
  126.   global Help
  127.   if Help
  128.   then
  129. else
  130.   put empty into fld "Tell"
  131.   changeCurs 69
  132. end if
  133. end mouseLeave
  134.  
  135.  
  136. -- part 42 (button)
  137. -- low flags: 00
  138. -- high flags: 0000
  139. -- rect: left=479 top=263 right=275 bottom=491
  140. -- title width / last selected line: 0
  141. -- icon id / first selected line: 0 / 0
  142. -- text alignment: 1
  143. -- font id: 0
  144. -- text size: 12
  145. -- style flags: 0
  146. -- line height: 16
  147. -- part name: Schematic
  148. ----- HyperTalk script -----
  149. on mouseUp
  150.   Global Help
  151.   if Help is true then exit MouseUp
  152.   visual effect dissolve slowly to white
  153.   push card
  154.   go stack "Apple Desktop Connectivity"
  155.   pass mouseUp
  156. end mouseUp
  157.  
  158. on mousedown
  159.   send mousedown to field "Explainer"
  160. end mousedown
  161.  
  162. --‚Ä¢ HELP
  163. --on mouseEnter
  164. global Help
  165. if Help then
  166.   set lockscreen to true
  167.   show field "Explainer"
  168.   put "This is the Network Schematics Button" & return & return & "This button will take you" & return & "to a stack of networking configurations." & return & "(If that stack is available to your system)" into field "Explainer"
  169.   unlock screen with dissolve fast
  170. else
  171.   put "Network Schematics Button" & return & "click to go to that stack" into fld "Tell"
  172. end if
  173. --end mouseEnter
  174.  
  175. --on mouseLeave
  176. global Help
  177. if Help
  178. then
  179. else
  180.   put empty into fld "Tell"
  181. end if
  182. --end mouseLeave
  183.  
  184.  
  185. -- part 43 (field)
  186. -- low flags: 80
  187. -- high flags: 2007
  188. -- rect: left=21 top=148 right=287 bottom=221
  189. -- title width / last selected line: 0
  190. -- icon id / first selected line: 0 / 0
  191. -- text alignment: 0
  192. -- font id: 242
  193. -- text size: 9
  194. -- style flags: 0
  195. -- line height: 12
  196. -- part name: zoomer
  197.  
  198.  
  199. -- part 44 (button)
  200. -- low flags: 80
  201. -- high flags: 0002
  202. -- rect: left=419 top=60 right=138 bottom=462
  203. -- title width / last selected line: 0
  204. -- icon id / first selected line: 0 / 0
  205. -- text alignment: 1
  206. -- font id: 0
  207. -- text size: 12
  208. -- style flags: 0
  209. -- line height: 16
  210. -- part name: Open Elevator
  211. ----- HyperTalk script -----
  212. on mouseUp
  213.   hide me
  214. end mouseUp
  215.  
  216.  
  217.  
  218. -- part 50 (button)
  219. -- low flags: 80
  220. -- high flags: 0002
  221. -- rect: left=283 top=87 right=231 bottom=391
  222. -- title width / last selected line: 0
  223. -- icon id / first selected line: 0 / 0
  224. -- text alignment: 1
  225. -- font id: 0
  226. -- text size: 12
  227. -- style flags: 0
  228. -- line height: 16
  229. -- part name: ElevatorThing
  230. ----- HyperTalk script -----
  231. on mouseUp
  232.   pass mouseUp
  233. end mouseUp
  234.  
  235.  
  236.  
  237. -- part 69 (button)
  238. -- low flags: 00
  239. -- high flags: 0000
  240. -- rect: left=170 top=305 right=341 bottom=342
  241. -- title width / last selected line: 0
  242. -- icon id / first selected line: 0 / 0
  243. -- text alignment: 1
  244. -- font id: 0
  245. -- text size: 12
  246. -- style flags: 0
  247. -- line height: 16
  248. -- part name: Blinker
  249. ----- HyperTalk script -----
  250. on mouseEnter
  251.   put "Message Field" & return & "displays help information" into fld "Tell"
  252. end mouseEnter
  253.  
  254. on mouseLeave
  255.   put empty into fld "Tell"
  256. end mouseLeave
  257.  
  258.  
  259. -- part 76 (field)
  260. -- low flags: 01
  261. -- high flags: 0000
  262. -- rect: left=1 top=0 right=28 bottom=202
  263. -- title width / last selected line: 0
  264. -- icon id / first selected line: 0 / 0
  265. -- text alignment: 1
  266. -- font id: 156
  267. -- text size: 18
  268. -- style flags: 2048
  269. -- line height: 24
  270. -- part name: RoomName
  271.  
  272.  
  273. -- part 80 (field)
  274. -- low flags: 01
  275. -- high flags: 0002
  276. -- rect: left=70 top=38 right=78 bottom=166
  277. -- title width / last selected line: 0
  278. -- icon id / first selected line: 0 / 0
  279. -- text alignment: 1
  280. -- font id: 156
  281. -- text size: 12
  282. -- style flags: 0
  283. -- line height: 16
  284. -- part name: 
  285.  
  286.  
  287. -- part 3 (button)
  288. -- low flags: 00
  289. -- high flags: 0000
  290. -- rect: left=73 top=38 right=231 bottom=163
  291. -- title width / last selected line: 0
  292. -- icon id / first selected line: 0 / 0
  293. -- text alignment: 1
  294. -- font id: 0
  295. -- text size: 12
  296. -- style flags: 0
  297. -- line height: 16
  298. -- part name: 
  299. ----- HyperTalk script -----
  300. on mouseEnter
  301.   changeCurs 6069
  302.   put "Briefing Room Button" & return & "click to enter" into fld "Tell"
  303. end mouseEnter
  304.  
  305. on mouseUp
  306.   set cursor to busy
  307.   visual effect zoom open slowly
  308.   go to cd "Briefing Room"
  309. end mouseUp
  310.  
  311. On mouseDown
  312.   Global ClickSND
  313.   play ClickSND
  314. End mouseDown
  315.  
  316. on mouseLeave
  317.   put empty into fld "Tell"
  318.   changeCurs 69
  319. end mouseLeave
  320.  
  321.  
  322. -- part 77 (button)
  323. -- low flags: 00
  324. -- high flags: 0000
  325. -- rect: left=385 top=303 right=342 bottom=428
  326. -- title width / last selected line: 0
  327. -- icon id / first selected line: 18849 / 18849
  328. -- text alignment: 1
  329. -- font id: 0
  330. -- text size: 12
  331. -- style flags: 0
  332. -- line height: 16
  333. -- part name: mask
  334. ----- HyperTalk script -----
  335. on mouseEnter
  336.   changeCurs 6069
  337.   put "Lobby Button" & return & "current location" into fld "Tell"
  338. end mouseEnter
  339.  
  340. on mouseLeave
  341.   put empty into fld "Tell"
  342.   changeCurs 69
  343. end mouseLeave
  344.  
  345.  
  346. -- part 78 (field)
  347. -- low flags: 01
  348. -- high flags: 2004
  349. -- rect: left=402 top=123 right=226 bottom=475
  350. -- title width / last selected line: 0
  351. -- icon id / first selected line: 0 / 0
  352. -- text alignment: 0
  353. -- font id: 156
  354. -- text size: 10
  355. -- style flags: 16384
  356. -- line height: 13
  357. -- part name: Destination
  358. ----- HyperTalk script -----
  359. on mouseUp
  360.   global Env,currentFloor,lastFloor
  361.   set cursor to busy
  362.   --‚àÜ Get line number and highlight line
  363.   put line SelectionAndHiliter(1) of me into Env
  364.   show cd button "DestinationHiliter"
  365.   --‚àÜ Go inside elevator and set up view
  366.   set lockscreen to true
  367.   go to cd "ElevatorOpen"
  368.   --‚àÜ Show name of chosen env
  369.   put env into EnvTemp
  370.   put envTemp into cd field "EnvName"
  371.   --‚àÜ Fix env for code use
  372.   if Env is "Macintosh" then put "Mac" into Env
  373.   --‚àÜ Set floor indicators
  374.   hide cd button "destinationHiliter"
  375.   hide cd button "3  ApplicationsHiliter"
  376.   hide cd button "2  Network ServicesHiliter"
  377.   hide cd button "1  HardwareHiliter"
  378.   show cd button "0  LobbyHiliter"
  379.   --‚àÜ Set lights over door
  380.   set the hilite of btn "3  Applications" to false
  381.   set the hilite of btn "2  Network Services" to false
  382.   set the hilite of btn "1  Hardware" to false
  383.   set the hilite of btn "0  Lobby" to true
  384.   --‚àÜ Put level name over door
  385.   put currentFloor into cd fld "currentFloor"
  386.   play "22"
  387.   unlock screen with visual effect barn door open
  388. end mouseup
  389.  
  390. on mouseEnter
  391.   changeCurs 6069
  392.   put "Environment Chooser" & return & "click to enter elevator" into fld "Tell"
  393. end mouseEnter
  394.  
  395. on mouseLeave
  396.   changeCurs 69
  397.   put "" into fld "Tell"
  398. end mouseLeave
  399.  
  400.  
  401. -- part 79 (button)
  402. -- low flags: 80
  403. -- high flags: 4000
  404. -- rect: left=403 top=128 right=142 bottom=472
  405. -- title width / last selected line: 0
  406. -- icon id / first selected line: 0 / 0
  407. -- text alignment: 1
  408. -- font id: 0
  409. -- text size: 12
  410. -- style flags: 0
  411. -- line height: 16
  412. -- part name: DestinationHiliter
  413.  
  414.  
  415. -- part 81 (field)
  416. -- low flags: 01
  417. -- high flags: 0002
  418. -- rect: left=290 top=38 right=78 bottom=386
  419. -- title width / last selected line: 0
  420. -- icon id / first selected line: 0 / 0
  421. -- text alignment: 1
  422. -- font id: 156
  423. -- text size: 12
  424. -- style flags: 0
  425. -- line height: 16
  426. -- part name: 
  427.  
  428.  
  429. -- part 82 (field)
  430. -- low flags: 01
  431. -- high flags: 0000
  432. -- rect: left=399 top=78 right=122 bottom=477
  433. -- title width / last selected line: 0
  434. -- icon id / first selected line: 0 / 0
  435. -- text alignment: 0
  436. -- font id: 156
  437. -- text size: 12
  438. -- style flags: 10240
  439. -- line height: 14
  440. -- part name: 
  441.  
  442.  
  443. -- part 83 (button)
  444. -- low flags: 00
  445. -- high flags: 0000
  446. -- rect: left=280 top=84 right=231 bottom=394
  447. -- title width / last selected line: 0
  448. -- icon id / first selected line: 0 / 0
  449. -- text alignment: 1
  450. -- font id: 0
  451. -- text size: 12
  452. -- style flags: 0
  453. -- line height: 16
  454. -- part name: New Button
  455. ----- HyperTalk script -----
  456. on mouseUp
  457.   set hilite of cd btn elevatorChoices to true
  458.   play cymbal
  459. end mouseUp
  460.  
  461.  
  462.  
  463. -- part 87 (field)
  464. -- low flags: 80
  465. -- high flags: 0000
  466. -- rect: left=280 top=276 right=293 bottom=495
  467. -- title width / last selected line: 0
  468. -- icon id / first selected line: 0 / 0
  469. -- text alignment: 0
  470. -- font id: 3
  471. -- text size: 12
  472. -- style flags: 0
  473. -- line height: 16
  474. -- part name: New Time
  475.  
  476.  
  477. -- part 88 (field)
  478. -- low flags: 80
  479. -- high flags: 0000
  480. -- rect: left=62 top=274 right=291 bottom=270
  481. -- title width / last selected line: 0
  482. -- icon id / first selected line: 0 / 0
  483. -- text alignment: 0
  484. -- font id: 3
  485. -- text size: 12
  486. -- style flags: 0
  487. -- line height: 16
  488. -- part name: Old Time
  489.  
  490.  
  491. -- part contents for card part 43
  492. ----- text -----
  493.      Zoomer is an XCMD resource which you may install in any stack to produce a zooming rectangle animation effect, similar to that in the Finder.  I've seen a couple of other externals similar to this, but I think you will find this one snappier and smoother than the others.
  494.  
  495.      The syntax of zoomer is as follows:
  496.  
  497.      Zoomer L1,T1,R1,B1,L2,T2,R2,B2
  498.  
  499. where L1, T1, R1 and B1 are the left, top, right and bottom coordinates of the origin rectangle, and L2, T2, R2 and B2 are the left, top, right and bottom coordinates of the destination rectangle.  This order corresponds to the order of coordinates used by Hypercard when you request the Rect of an object, like a button or field.  The parameters should be whole numbers.
  500.  
  501. For a more creative use of Zoomer, close this window and click the ? icon again, with the Option key held down.
  502.  
  503. If you pass more than eight parameters to Zoomer, any extra parameters will be ignored.  If you pass less than eight parameters, Zoomer will do nothing.  Likewise, if you try to pass any non-numeric characters, Zoomer will just play dead.
  504.  
  505. Mac II users:  Zoomer operates on coordinates local to the HyperCard window, not global screen coordinates.
  506.  
  507.  
  508.  
  509. -- part contents for card part 76
  510. ----- text -----
  511. Connectivity Lobby
  512.  
  513. -- part contents for card part 78
  514. ----- text -----
  515. Digital
  516. IBM
  517. Macintosh
  518. PC
  519. Tandem
  520. UNIX
  521. Wang
  522.  
  523.  
  524. -- part contents for card part 80
  525. ----- text -----
  526. Executive
  527. Briefing Room
  528.  
  529.  
  530. -- part contents for card part 81
  531. ----- text -----
  532. Connectivity
  533. Elevator
  534.  
  535.  
  536. -- part contents for card part 82
  537. ----- text -----
  538. Choose  your
  539. Installed
  540. Environment
  541.  
  542. -- part contents for card part 87
  543. ----- text -----
  544. 2723213366
  545.  
  546. -- part contents for card part 88
  547. ----- text -----
  548. 2723213366